﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using Newtonsoft.Json;
using ZilLion.Service.Core.Domain.EntityBase.JsonConverter;

namespace ZL.CRM.CommonEntity.AccOpr
{
    public class JfQianzhReturn:JfHouzhReturn
    {

        /// <summary>
        ///  本次减少：可用积分
        /// </summary>
        public int Kyjf { get; set; }


        /// <summary>
        ///  最新折扣类别id
        /// </summary>
        public int Zklbid { get; set; }

        /// <summary>
        ///  最新折扣类别失效时间(读取缓存)
        /// </summary>
        [JsonConverter(typeof(ChinaDateTimeConverter))]
        public DateTime? Zklbshixrq { get; set; }

    }
    public class JfQianzhReturnMapper : ClassMapper<JfQianzhReturn>
    {
        public JfQianzhReturnMapper()
        {
            Table("#JfQianzhReturn");
            Map(f => f.Kyjf).Column("Kyjf");
            Map(f => f.Kyjfye).Column("Kyjfye");
            Map(f => f.Bkyjfye).Column("Bkyjfye");
            Map(f => f.Zklbid).Column("Zklbid");
            Map(f => f.Zklbshixrq).Column("Zklbshixrq");
            Map(f => f.Acckzid).Column("Acckzid");
        }
    }
}
